<?php
/**
+++-----products与products_descripiton ,products_to_categories关联
*/
class ProductsRelationModel extends RelationModel{
	
	protected $tableName ='products';
	protected $_link = array(
			'categories' => array(
							'mapping_type'=> MANY_TO_MANY,
							'foreign_key'=>'products_id',
							'relation_foreigh_key'=>'categories_id',
							'relation_table'=>'products_to_categories'
							)
	);
	
		
} 

?>